<template>
  <div>
    <banner></banner>
    <div class="questionsContent">
      <header>当前第6题/共8题</header>
      <p>6.你对咨询接待流程是否满意？</p>
      <radio-group class="radioGroup"
        @change="getRadioValue"
      >
        <label
          @click="reasonMsg(index)"
          class="radio"
          v-for="(item,index) in subData"
          :index="index"
          :key="index"
        >
          <radio :value="item.value" />
          <span>{{item.value}}</span>
        </label>
      </radio-group>
      <input v-if="currentIndex == 3" type="text" placeholder="请提出您宝贵的意见" />
      <button @click="PlusIndex" type="primary">下一题</button>
    </div>
  </div>
</template>

<script>
import banner from "@/components/questionBanner.vue";
import Vue from "vue"

export default {
  data() {
    return {
      subData: [
            { value: "A.非常满意" },
            { value: "B.满意" },
            { value: "C.一般" },
            { value: "D.不满意（原因必填）" }
      ],
      currentIndex: 0,
      haschange: -1
    };
  },
  components: {
    banner,
  },
  methods: {
    PlusIndex() {
      // if (this.haschange == -1) {
      //   wx.showToast({
      //     title: "不能为空",
      //     duration: 2000,
      //     icon: "none"
      //   });
      // } else
        wx.navigateTo({ url: "../questionSeven/main" });

    },

           getRadioValue(e) {
      Vue.prototype.yuanyin = e.mp.detail.value;
    }

  },
  created() {},
  onLoad() {}
};
</script>

<style scoped>
</style>
